<template>
  <iframe :src="$route.meta.link" :class="this.$store.state.setting.layout === 'horizontal' ? 'horizontal-iframe' : 'inline-iframe'" frameborder="0" />
</template>
<script>
export default {
  name: 'IframeLayout',
  props: {},
  data() {
    return {}
  },
  created() {
    console.log(this.$store.state.setting)
  },
  mounted() {
  },
  methods: {
  }
}
</script>

<style lang="scss" scoped>
iframe {
  position: absolute;
  z-index: 1;
  width: 100%;
  height: calc(100% - 111px);
  right: 0;
  bottom: 0;
}
.horizontal-iframe {
  left: 0;
}
.inline-iframe {
  left: 256px;
}

</style>
